<template>
  <s-modal title="代码" :visible="visible" width="800px" :footer="null" @cancel="visible = false">
    <div style="height: 400px">
      <s-scroll>
        <s-text-area v-model="fakeValue" style="height: 100%" :rows="17" />
      </s-scroll>
    </div>
  </s-modal>
</template>
<script>
export default {
  name: 'Display',
  data() {
    return {
      visible: false,
      fakeValue: ''
    }
  },
  methods: {
    open(val) {
      this.fakeValue = val
      this.visible = true
    }
  }
}
</script>
